<template>
	<view>
		<view class="nav-my">
			<text class="go" @click="back"></text>
			<text class="title"><slot>查看</slot></text>
		</view>
		<view style="height:40px"></view>
	</view>
</template>

<script>
export default {
	methods:{
		back(){
			window.history.go(-1);
		},
	}
};
</script>

<style scoped lang="scss">
.nav-my {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	height: 40px;
	background-color: #fff;
	text-align: center;
	color: #000;
	display: flex;
	align-items: center;
	font-size: 16px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
	.go {
		font-size: 1.4em;
		padding: 0 16px;
		cursor: pointer;
		&::after{
			content: '';
			color:rgba(0,0,0,.7);
			display: inline-block;
			border-top: 2px solid;
			border-left: 2px solid;
			width: 10px;
			height: 10px;
			transform: rotateZ(-45deg);
		}
	}
	.title {
		flex: 1;
		margin-left: -40px;
	}
}
</style>
